import { createPinia } from 'pinia'
import useLoginStore from '@/store/user/index.js'

const pinia = createPinia()

function registerStore(app) {
  app.use(pinia)

  const loginStore = useLoginStore()
  loginStore.loadRouterData()
}

export default registerStore
